package com.ruoyi.goods.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品单位管理对象 t_unit
 * 
 * @author zxr
 * @date 2023-06-19
 */
public class Unit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品单位id，主键 */
    @Excel(name = "商品单位id，主键")
    private Integer unitId;

    /** 商品单位名称 */
    @Excel(name = "商品单位名称")
    private String unitName;

    public void setUnitId(Integer unitId) 
    {
        this.unitId = unitId;
    }

    public Integer getUnitId() 
    {
        return unitId;
    }
    public void setUnitName(String unitName) 
    {
        this.unitName = unitName;
    }

    public String getUnitName() 
    {
        return unitName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("unitId", getUnitId())
            .append("unitName", getUnitName())
            .toString();
    }
}
